<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Ownedcompany')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-ownedcompany" data-rule="required" class="form-control" name="row[ownedcompany]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Businesstype')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select  id="c-businesstype" data-rule="required" class="form-control selectpicker" name="row[businesstype]">
                {foreach name="businesstypeList" item="vo"}
                <option value="{$key}" {in name="key" value="社保"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Idnumber')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-idnumber" data-rule="required" class="form-control" name="row[idnumber]" type="text" value="">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('客户姓名')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('客户电话')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-mobile" data-rule="required;mobile" class="form-control" name="row[mobile]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('户籍地址')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-address0" data-rule="required" class="form-control" name="row[address0]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('现住地址')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-address1" data-rule="required" class="form-control" name="row[address1]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Paymentnumber')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-paymentnumber" data-rule="required" class="form-control" name="row[paymentnumber]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label for="c-payingcompany" class="control-label col-xs-12 col-sm-2">{:__('缴纳公司')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select id="c-payingcompany" data-rule="required" class="form-control selectpicker" name="row[payingcompany]">
                <option data-type="0" value="0" disabled>{:__('None')}</option>
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Paymentbase')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-paymentbase" data-rule="required" class="form-control" name="row[paymentbase]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Paymentamount')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-paymentamount" data-rule="required" class="form-control" name="row[paymentamount]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Monthspaid')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-monthspaid" data-rule="required" class="form-control" name="row[monthspaid]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Yearpayment')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-yearpayment" data-rule="required" class="form-control" name="row[yearpayment]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('操作年月')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-overdueyear" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM" data-use-current="true" name="row[overdueyear]" type="text" value="{:date('Y-m')}">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>

<script>
    var cdata = {
        companyList: {:json_encode(array_values($companyList))},
    };
</script>